import * as echarts from 'echarts/core'
import {
  GridComponent,
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  VisualMapComponent,
  GeoComponent,
  GraphicComponent,
} from 'echarts/components'

import { LineChart, PieChart, BarChart, MapChart } from 'echarts/charts'
import { UniversalTransition } from 'echarts/features'
import { CanvasRenderer } from 'echarts/renderers'

echarts.use([
  TitleComponent,
  TooltipComponent,
  GridComponent,
  LegendComponent,
  LineChart,
  PieChart,
  BarChart,
  CanvasRenderer,
  VisualMapComponent,
  GeoComponent,
  MapChart,
  GraphicComponent,
  UniversalTransition,
])

window.echarts = echarts
